Component({
    data: {

        goods: {
            id: 1,
            titlepic: "https://pic.hongsizg.com/minipro/mall/goods.png",
            title: "鲜肉月饼礼盒(6枚装)",
            desc: "",
            price: 90,
            origin_price: 2721.6,
            sold: 200
        },
        package: [
            {
                category: {
                    title: "月饼",
                },
                items: [
                    {
                        name: "黑毛猪鲜肉月饼",
                        count: "2枚",
                        price: 118
                    },
                    {
                        name: "黑毛猪鲜肉蟹粉月饼",
                        count: "2枚",
                        price: 118
                    },
                    {
                        name: "黑毛猪鲜肉松露月饼",
                        count: "2枚",
                        price: 118
                    },
                ]
            },
        ],
        expressType: 1,
        userAddress: {
            id: 1,
            name: "张三",
            sex: 1,
            phone: "12345678901",
            address: "上海市闵行区竹园路559号",
            remark: "测试备注"
        }
    },
    methods: {
        toPage(e: any) {
            let id = e.currentTarget.dataset.id;
            wx.navigateTo({
                url: "/pages/mall/package/submit?id=" + id
            });
        },
        toggleTab(e: any) {
            let expressType = e.currentTarget.dataset.type;
            this.setData({
                expressType: expressType
            });
        }
    }
})
